home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Data / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.2 KB  |  51 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. #ifndef FWRECT_H
  14. #include <FWRect.h>            // FW_CRect
  15. #endif
  16.  
  17. // ----- OS Layer -----
  18. #ifndef FWEVENT_H
  19. #include "FWEvent.h"        // FW_CMouseEvent
  20. #endif
  21.  
  22. //=======================================================================
  23. class CDataPart;
  24. class FW_CMenuEvent;
  25.  
  26. //=======================================================================
  27. class CDataFrame : public FW_CFrame {
  28. public:
  29.     FW_DECLARE_AUTO(CDataFrame)
  30.     
  31.                         CDataFrame(Environment* ev, 
  32.                                     ODFrame* odFrame, 
  33.                                     FW_CPresentation* presentation, 
  34.                                     CDataContent* content);
  35.     virtual             ~CDataFrame();
  36. protected:
  37. // overrides
  38.     virtual void        Draw(Environment *ev, 
  39.                              ODFacet* odFacet, 
  40.                              ODShape* invalidShape);
  41.     virtual FW_Boolean     DoMouseDown(Environment* ev, 
  42.                                 const FW_CMouseEvent& theMouseEvent);
  43. // new members
  44. private:
  45.     CDataContent*         fDataContent;
  46.     FW_CRect             fFrameRect;
  47. };
  48.  
  49. //=======================================================================
  50. #endif
  51.